package com.dingreading.cloud.admin.dto;

import com.dingreading.cloud.admin.entity.SubjectLessonVideo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.RelationOneToMany;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class SubjectLessonListDto implements Serializable {

    /**
     * 主键ID
     */
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date editTime;

    private String addStaffUid;

    private String addStaffName;

    private String lastStaffUid;

    private String lastStaffName;

    private String uid;

    /**
     * 主学科id
     */
    private Long subjectMainId;

    /**
     * 关联学科的id
     */
    private Long subjectId;

    /**
     * 课次名
     */
    private String lessonName;

    /**
     * 教学目的
     */
    private String teachAims;

    /**
     * 课次序号
     */
    private Integer lessonOrder;

    /**
     * 权限 0.无 1.有
     */
    private Long power;

    /**
     * 状态 0.禁用 1.启用
     */
    private Integer enabled;

    /**
     * 教案地址
     */
    private String teachPlanUrl;

    /**
     * 课件html地址
     */
    private String htmlUrl;

    /**
     * 资料地址
     */
    private String dataUrl;

    /**
     * 兜学慧课件id
     */
    private Long dxhLessonId;

    /**
     * 书籍信息
     */
    private String bookIsbn;
    private String bookImg;
    private String bookPress;
    private String bookImgCdnUrl;

    /**
     * 层级节点
     */
    private String subjectNodes;

    /**
     * 视频集合
     */
    @RelationOneToMany(selfField = "uid", targetField = "lessonUid")
    private List<SubjectLessonVideo> videoList;

}
